package com.wt.chat.service.impl;

import com.wt.chat.entity.Group;
import com.wt.chat.mapper.GroupMapper;
import com.wt.chat.service.GroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description
 * @author: wangtao
 * @date:17:46 2019/11/29
 * @email:taow02@jumei.com
 */
@Service
public class GroupServiceImpl implements GroupService {

	@Autowired
	private GroupMapper groupMapper;

	@Override
	public List<Group> findAll() {
		return groupMapper.findByCondition(new Group().setStatus(Group.GroupStatus.USABLE.isVal()));
	}
}
